package com.twu.biblioteca.memberdata;

import com.twu.biblioteca.memberdata.Member;

/**
 * Created with IntelliJ IDEA.
 * User: Maximilian
 * Date: 2/10/13
 * Time: 4:27 PM
 * To change this template use File | Settings | File Templates.
 */
public class UserDetails {
    Member loggedInAs = null;

    public void setLoggedInAs(Member member)
    {
        loggedInAs = member;
    }

    public Member getLoggedInAs()
    {
        return loggedInAs;
    }

    public boolean isLoggedIn()
    {
        return loggedInAs != null;
    }

    public String toString()
    {
        return loggedInAs.toString();
    }
}
